<template>
  <section>
    <div class="flexWrap flexC1 f36 cBasic2 mt50">
      <i
        class="uIcon uIconcheckbox"
        :class="{uIconActive:uIconActiveSwitch}"
        @click="checkboxSwitch"
      ></i>
      我有推荐人（选填）
    </div>
    <input-item
      inputTitleTxt="推荐人"
      inputPlaceholderTxt="请推荐人号码"
      v-show="uIconActiveSwitch"
      inputType="inputTypeRecommend"
    ></input-item>
  </section>
</template>

<script>
  import inputItem from '@/pagesmodule/input'

  export default {
    name: 'moduleRecommend',
    components: {
      inputItem
    },
    data () {
      return {
        uIconActiveSwitch: false
      }
    },
    methods: {
      checkboxSwitch () {
        this.uIconActiveSwitch = !this.uIconActiveSwitch
      }
    }
  }
</script>
